package com.mebs.model;

import org.jt.jet.content.JetNamedObject;

/**
 * User: epb
 * Date: 07.10.2009
 * Time: 14:16:22
 */
public enum DocsStatus implements JetNamedObject {
	NO(1, "No"),
	DRAFT(2, "Draft"),
	DONE(3, "Done");

	public final int type;
	public final String name;

	DocsStatus(int type, String name) {
		this.type = type;
		this.name = name;
	}

	public static DocsStatus getObjectByType(int type){
		return DocsStatus.values()[type - 1];
	}

	public Object getObjectId() {
		return type;
	}

	public String getObjectName() {
		return name;
	}

	public String toString() {
		return name;
	}
}
